package org.tio.sitexxx.web.server.controller.minip;

/**
 * 支付类型枚举
 */
public enum type {
    kf("kf"),
    zx("zx"),//废弃
    w("w"),
    c("c"),
    q("q");
    private String name;
    public String getName() {
        return name;
    }
    private type(String name) {//防止外部调用
        this.name=name;
    }
    public static type getTypeByValue(String str) {
        for(type strtype:type.values()) {
            if(strtype.getName().equals(str)) {
                return strtype;
            }
        }
        return null;
    }
}
